/*
 * Copyright 2005-2013 finalist.cn. All rights reserved.
 * Support: http://www.finalist.cn
 * License: http://www.finalist.cn/license
 */
package com.finalist.controller.travel.pc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.finalist.controller.admin.BaseController;
import com.finalist.entity.Product;
import com.finalist.service.ProductService;

/**
 * Controller - 关于风客
 * 
 * @author Finalist IT Group
 * @version 3.0
 */
@Controller("introductionController")
@RequestMapping("/travel/pc/introduction")
public class AboutController extends BaseController
{
	@Resource(name = "productServiceImpl")
	private ProductService productService;
	
	/**
	 * 关于风客
	 */
	@RequestMapping(value = "/about", method = RequestMethod.GET)
	public String list(ModelMap model) {
		model.addAttribute("activePage", "about");
		
		List<Product> carouselProductsTemp = productService.findProductByCondition(1, true, true, null, null, null, null, null);
		if(carouselProductsTemp != null && carouselProductsTemp.size()>0){
			Product carouselProducts = carouselProductsTemp.get(0);
			model.put("carouselProducts", carouselProducts);
		}
		
		return "/travel/pc/about";
	}
}